home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2008 #18
/
KCD200818.ISO
/
Euro Truck
/
ets_1_00_setup.exe
/
base.scs
/
effect
/
eut
/
dif
/
nv4x_tg0.vp
< prev
next >
Wrap
Text File
|
2008-07-25
|
4KB
|
108 lines
!!ARBvp1.0
OPTION NV_vertex_program3;
# cgc version 2.0.0015, build date May 15 2008
# command line args: -quiet -fastprecision -I../../eurotrucks/eut_effect -I../../src/shaderlib/effect -profile vp40 -DPATH_NV4X -DEUT_TEXGEN_0
# source file: dif/eut.dif.cg
#vendor NVIDIA Corporation
#version 2.0.0.15
#profile vp40
#program vertex_main
#semantic vertex_main.transform
#semantic vertex_main.sun
#semantic vertex_main.truck
#semantic vertex_main.fog_density
#semantic vertex_main.texgen_0
#var float4 v.position : $vin.POSITION : POSITION : 0 : 1
#var float3 v.normal : $vin.NORMAL : NORMAL : 0 : 1
#var float4 v.color : $vin.COLOR0 : COLOR0 : 0 : 1
#var float4x4 transform.mvp_matrix : : c[0], 4 : 1 : 1
#var float4x4 transform.mv_matrix : : c[4], 4 : 1 : 1
#var float3 sun.es_direction : : c[8] : 2 : 1
#var float4 sun.ambient : : c[9] : 2 : 1
#var float4 sun.diffuse : : c[10] : 2 : 1
#var float4 sun.specular : : c[11] : 2 : 1
#var float3 truck.es_position : : c[12] : 3 : 1
#var float3 truck.es_direction : : c[13] : 3 : 1
#var float truck.spot_exponent : : c[14] : 3 : 1
#var float3 truck.attenuation : : c[15] : 3 : 1
#var float4 truck.diffuse : : c[16] : 3 : 1
#var float4 truck.specular : : c[17] : 3 : 1
#var float fog_density : : c[18] : 4 : 1
#var float4 texgen_0.gen_x : : c[19] : 5 : 1
#var float4 texgen_0.gen_y : : c[20] : 5 : 1
#var float4 vertex_main.position : $vout.POSITION : HPOS : -1 : 1
#var float4 vertex_main.diffuse : $vout.TEXCOORD1 : TEX1 : -1 : 1
#var float3 vertex_main.specular : $vout.TEXCOORD2 : TEX2 : -1 : 1
#var float vertex_main.fog : $vout.FOG : FOGC : -1 : 1
#var float4 vertex_main.tex_coord_0 : $vout.TEXCOORD0 : TEX0 : -1 : 1
#const c[21] = 0 1 1.442695 2
PARAM c[22] = { program.local[0..20],
{ 0, 1, 1.442695, 2 } };
TEMP R0;
TEMP R1;
TEMP R2;
TEMP R3;
TEMP RC, HC;
BB1:
DP4 R0.w, -vertex.position, c[6];
MOV R1.z, -R0.w;
DP4 R1.x, vertex.position, c[4];
DP4 R1.y, vertex.position, c[5];
DP3 R2.x, -R1, -R1;
ADD R0.xyz, c[12], -R1;
DP3 R1.w, R0, R0;
RSQ R1.w, R1.w;
RSQ R2.x, R2.x;
MUL R2.xyz, R2.x, -R1;
MUL R3.xyz, R1.w, R0;
ADD R0.xyz, R3, R2;
DP3 R1.x, R0, R0;
RSQ R1.x, R1.x;
MUL R0.xyz, R1.x, R0;
DP3 R1.z, vertex.normal, c[6];
DP3 R1.y, vertex.normal, c[5];
DP3 R1.x, vertex.normal, c[4];
DP3 R0.y, R1, R0;
DP3 R0.x, R1, R3;
MOV R0.z, c[17].w;
LIT R0.yz, R0.xyzz;
ADD R2.xyz, -c[8], R2;
DP3 R0.x, R2, R2;
RSQ R2.w, R0.x;
MUL R2.xyz, R2.w, R2;
DP3 R2.y, R1, R2;
DP3_SAT R3.x, -R3, c[13];
POW R0.x, R3.x, c[14].x;
MUL R0.xy, R0.yzzw, R0.x;
RCP R0.z, R1.w;
DP3 R2.x, R1, -c[8];
MOV R2.z, c[11].w;
LIT R1.xyz, R2.xyzz;
MOV R2.y, R0.z;
MUL R2.z, R0, R0;
MOV R2.x, c[21].y;
DP3 R0.z, R2, c[15];
MUL R2.xyz, R1.y, c[10];
MAD R2.xyz, R1.x, c[9], R2;
RCP R0.z, R0.z;
MUL R1.xy, R0, R0.z;
MAD R0.xyz, R1.x, c[16], R2;
MUL R0.xyz, vertex.color, R0;
MUL R2.xyz, R1.y, c[17];
MUL result.texcoord[1].xyz, R0, c[21].w;
MUL R0.x, R0.w, c[18];
MUL R0.x, R0, R0;
MUL R0.x, R0, c[21].z;
MAD result.texcoord[2].xyz, R1.z, c[11], R2;
MOV result.texcoord[0].zw, c[21].xyxy;
DP4 result.position.w, vertex.position, c[3];
DP4 result.position.z, vertex.position, c[2];
DP4 result.position.y, vertex.position, c[1];
DP4 result.position.x, vertex.position, c[0];
MOV result.texcoord[1].w, vertex.color;
EX2_SAT result.fogcoord.x, -R0.x;
DP4 result.texcoord[0].x, vertex.position, c[19];
DP4 result.texcoord[0].y, vertex.position, c[20];
END
# 59 instructions, 4 R-regs